﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace JacOS.Programs
{
    class math
    {
        public static void run()
        {
            Console.Write("\nType the opperation you want to use + - / * >> ");
            string opperation = Console.ReadLine();
            Console.Write("\nType the first number >> ");
            var FirstNum = JacOS.ReadNum(0, 10000, 0);
            Console.Write("\nType the second number >> ");
            var SecondNum = JacOS.ReadNum(0, 10000, 0);
            if (opperation == "+")
                Console.Write("\nAnswer: " + (FirstNum + SecondNum));
            if (opperation == "-")
                Console.Write("\nAnswer: " + (FirstNum - SecondNum));
            if (opperation == "*")
                Console.Write("\nAnswer: " + (FirstNum * SecondNum));
            if (opperation == "/")
                Console.Write("\nAnswer: " + (FirstNum / SecondNum));
        }
    }
}
